import request from '@/config/axios'

export interface AcqLinkUserVO {
        id: number
        weLinkId: string
        weUserId: string
        corpId: string
}

// 查询获客链接员工关系列表
export const getAcqLinkUserPage = async (params) => {
    return await request.get({url: `/wecom/acq-link-user/page`, params})
}

// 查询获客链接员工关系详情
export const getAcqLinkUser = async (id: number) => {
    return await request.get({url: `/wecom/acq-link-user/get?id=` + id})
}

// 新增获客链接员工关系
export const createAcqLinkUser = async (data: AcqLinkUserVO) => {
    return await request.post({url: `/wecom/acq-link-user/create`, data})
}

// 修改获客链接员工关系
export const updateAcqLinkUser = async (data: AcqLinkUserVO) => {
    return await request.put({url: `/wecom/acq-link-user/update`, data})
}

// 删除获客链接员工关系
export const deleteAcqLinkUser = async (id: number) => {
    return await request.delete({url: `/wecom/acq-link-user/delete?id=` + id})
}

// 导出获客链接员工关系 Excel
export const exportAcqLinkUser = async (params) => {
    return await request.download({url: `/wecom/acq-link-user/export-excel`, params})
}